package com.zh.behavior.service.impl;


import com.zh.behavior.dao.BedmatDao;
import com.zh.behavior.domain.BedmatDO;
import com.zh.behavior.service.BedmatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class BedmatServiceImpl implements BedmatService {
	@Autowired
	private BedmatDao bedmatDao;


	@Override
	public BedmatDO get(Long id){
		return bedmatDao.get(id);
	}
	
	@Override
	public List<BedmatDO> list(Map<String, Object> map){
		return bedmatDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return bedmatDao.count(map);
	}
	
	@Override
	public int save(BedmatDO bedmat){
		return bedmatDao.save(bedmat);
	}
	
	@Override
	public int update(BedmatDO bedmat){
		return bedmatDao.update(bedmat);
	}
	
	@Override
	public int remove(Long id){
		return bedmatDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return bedmatDao.batchRemove(ids);
	}
	@Override
	public BedmatDO getNew(BedmatDO bedmat){
		return bedmatDao.getNew(bedmat);
	}

	@Override
	public  List<BedmatDO> listByDay( BedmatDO bedmat){return bedmatDao.listByDay(bedmat);}
	
}
